import { getAsyncComponent } from '@/utils/getAsyncComponent';
import { options } from './componentOptions';
import { Plugin } from 'vue';
// app.use一次性注册多个全局组件
const asyncComponentsPlugin: Plugin = {
    install(app) {
        for (let item of options) {
            app.component(item.name, getAsyncComponent(item.path));
        }
    }
};
export default asyncComponentsPlugin;
